/**
 * @author 29284
 * @since 2024/12/10 20:24
 */

/**
 *
 * @author 29284
 * @since 2024/12/10 20:24
 */
import java.util.Date;
//属性+方法
public class Page {
    private String url;
    private int count;
    private Date lastTime;

    public Page() {
    }

    public Page(String url) {
        this.url = url;
        this.count =0;
        this.lastTime =new Date();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }
    public void incCount() {
        this.count++;
        this.lastTime = new Date();
    }
}
